linkAccount

abstract fun linkAccount(email: String, password: String, onResult: (Throwable?) -> Unit)

Link the current account to a new email and password. This operation links an email and password to the current user account.

Parameters

email

The email address to link.

password

The password to associate with the email.

onResult

The callback function to handle the result of the linking. It receives an optional Throwable indicating the error, if any.